import Router from 'koa-router'
import authController from '@/controller/auth.controller'
import { verifyLogin, vertifyAuth } from '@/middleware/auth.middleware'
const authRouter = new Router({prefix: '/auth'})

authRouter.post('/login', verifyLogin, authController.login)
authRouter.post('/test', vertifyAuth, authController.success)

export default authRouter